package sunbt.gistools.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 服务异常
 *
 * @author huangsh
 * @since 2024/08/19
 */
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class ServerException extends RuntimeException {

    /**
     * 错误提示
     */
    private String message;

    public ServerException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }
}
